#pragma once
#include "Platforms.h"

class InputManager
{
private:
	static InputManager *s_instance;
	bool m_keyCode[MAX_256];
	int m_typeMouse;
	int m_xMouse;
	int m_yMouse;

	InputManager(void);
	~InputManager(void);

public:
	static InputManager* GetInstance();
	static void Destroy();

	void OnKey(int keyCode, bool isKeyDown);
	void OnMouse(int type, int x, int y);

	bool IsKeyDown(int keyCode);
	bool IsMouseDown();
	bool IsMouseUp();
	bool IsDrag();
	bool IsPointerInRect(int x, int y, int w, int h);

	int GetXmouse();
	int GetYmouse();
};
